<link rel="stylesheet" type="text/css" href="/shop/templates/template1/Css/goods.css" />
<style>
	.clearfix{
		display: block;
	}
	.nch-breadcrumb-layout{
		display: none;
	}
	.buy_number{
		padding: 0 !important;
		border: 0 !important;
		font-size: 14px !important;
		height: 26px !important;
	}
	input[type=text]{
		padding: 0;
	}
	.mar_t20{
		margin-top: 20px !important;
	}
</style>
<?php if(get_template_type() == 'index'){?>
<script>
  (function($){$.fn.imagezoom=function(options){var settings={xzoom:400,yzoom:400,offset:0,position:"BTR",preload:1};if(options){$.extend(settings,options);}
var noalt='';var self=this;$(this).bind("mouseenter",function(ev){var imageLeft=$(this).offset().left;var imageTop=$(this).offset().top;var imageWidth=$(this).get(0).offsetWidth;var imageHeight=$(this).get(0).offsetHeight;var boxLeft=$(this).parent().offset().left;var boxTop=$(this).parent().offset().top;var boxWidth=$(this).parent().width();var boxHeight=$(this).parent().height();noalt=$(this).attr("alt");var bigimage=$(this).attr("rel");$(this).attr("alt",'');if($("div.zoomDiv").get().length==0){$(document.body).append("<div class='zoomDiv'><img class='bigimg' src='"+bigimage+"'/></div><div class='zoomMask'>&nbsp;</div>");}
if(settings.position=="BTR"){if(boxLeft+boxWidth+settings.offset+settings.xzoom>screen.width){leftpos=boxLeft-settings.offset-settings.xzoom;}else{leftpos=boxLeft+boxWidth+settings.offset;}}else{leftpos=imageLeft-settings.xzoom-settings.offset;if(leftpos<0){leftpos=imageLeft+imageWidth+settings.offset;}}
$("div.zoomDiv").css({top:boxTop - 40,left:leftpos + 50});$("div.zoomDiv").width(settings.xzoom);$("div.zoomDiv").height(settings.yzoom);$("div.zoomDiv").show();$(this).css('cursor','crosshair');$(document.body).mousemove(function(e){mouse=new MouseEvent(e);if(mouse.x<imageLeft||mouse.x>imageLeft+imageWidth||mouse.y<imageTop||mouse.y>imageTop+imageHeight){mouseOutImage();return;}
var bigwidth=$(".bigimg").get(0).offsetWidth;var bigheight=$(".bigimg").get(0).offsetHeight;var scaley='x';var scalex='y';if(isNaN(scalex)|isNaN(scaley)){var scalex=(bigwidth/imageWidth);var scaley=(bigheight/imageHeight);$("div.zoomMask").width((settings.xzoom)/scalex);$("div.zoomMask").height((settings.yzoom)/scaley);$("div.zoomMask").css('visibility','visible');}
xpos=mouse.x-$("div.zoomMask").width()/2;ypos=mouse.y-$("div.zoomMask").height()/2;xposs=mouse.x-$("div.zoomMask").width()/2-imageLeft;yposs=mouse.y-$("div.zoomMask").height()/2-imageTop;xpos=(mouse.x-$("div.zoomMask").width()/2<imageLeft)?imageLeft:(mouse.x+$("div.zoomMask").width()/2>imageWidth+imageLeft)?(imageWidth+imageLeft-$("div.zoomMask").width()):xpos;ypos=(mouse.y-$("div.zoomMask").height()/2<imageTop)?imageTop:(mouse.y+$("div.zoomMask").height()/2>imageHeight+imageTop)?(imageHeight+imageTop-$("div.zoomMask").height()):ypos;$("div.zoomMask").css({top:ypos,left:xpos});$("div.zoomDiv").get(0).scrollLeft=xposs*scalex;$("div.zoomDiv").get(0).scrollTop=yposs*scaley;});});function mouseOutImage(){$(self).attr("alt",noalt);$(document.body).unbind("mousemove");$("div.zoomMask").remove();$("div.zoomDiv").remove();}
count=0;if(settings.preload){$('body').append("<div style='display:none;' class='jqPreload"+count+"'></div>");$(this).each(function(){var imagetopreload=$(this).attr("rel");var content=jQuery('div.jqPreload'+count+'').html();jQuery('div.jqPreload'+count+'').html(content+'<img src=\"'+imagetopreload+'\">');});}}})(jQuery);function MouseEvent(e){this.x=e.pageX;this.y=e.pageY;}
</script>
<style>
  .zoomDiv{z-index:999;position:absolute;top:0px;left:100px;width:400px;height:400px;background:#ffffff;border:1px solid #CCCCCC;display:none;text-align:center;overflow:hidden;}
.zoomMask{position:absolute;background:url("/static/images/mask.png") repeat scroll 0 0 transparent;cursor:move;z-index:1;z-index: 100 !important;}
</style>

<div class="mall_detail_wrap white_bg">
	<style>
		.mall_detail_wrap{
			position: relative;
			z-index: 2;
		}
		.ncs-info{
			position: absolute;
			right: 0;
			top: 0;
			z-index: 3;
			background: #fff;
			display: none;
		}
		.icon-tags{
			position: absolute;
			top: 5px;
			font-size: 25px;
			right: 5px;
			cursor: pointer;
		}
		._share{
			position: absolute;
			right: 5px;
			bottom: 5px;
		}
	</style>
	<?php include(BASE_TPL_PATH . '/store/info.php')?>
	<i class=' icon-tags'></i>
	<div class="_share">
		<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
	</div>
	<script>
		$('.icon-tags').click(function(){
			$('.ncs-info').toggle();
		})
		$(function(){
			$(window).scroll(function(){
				var st = $(window).scrollTop();
				if(st > 694){
					$('.slidebar_r_nav').css({
						position : 'fixed',
						zIndex : 100,
						top : 0,
						left : 0
					}).find('ul').css({
						"width" : 1090,
						'margin' : '0 auto'
					});
				}
				else{
					$('.slidebar_r_nav').css({
						position : 'static',
						zIndex : 100,
						top : 'none',
						left : 'none'
					}).find('ul').css({
						"width" : '100%',
						'margin' : 0
					});
				}
			})
		})
	</script>
	<div class="mall_detail_sub" id="mall_detail_sub" style="display: block;">
	<?php if(!empty($output['nav_link_list']) && is_array($output['nav_link_list'])){?>
	  	<i class="icon-home"></i>
	    <?php foreach($output['nav_link_list'] as $nav_link){?>
	    <?php if(!empty($nav_link['link'])){?>
	    <a href="<?php echo $nav_link['link'];?>"><?php echo $nav_link['title'];?></a><em>></em>
	    <?php }else{?>
	    <span><?php echo $nav_link['title'];?></span>
	    <?php }?>
	    <?php }?>
	  <?php }?>
	</div>
	<?php
      $cmid = Model()->table('goods')->where(array('goods_id' => $_GET['goods_id']))->find();

      $store = $cmid['store_id'];
      $store_info = Model('store')->getStoreInfoByID($store);
      $cmid = $cmid['goods_commonid'];
      $ginfo = Model('goods_common')->find($cmid);
	$goods_info = Model('goods')->find($_GET['goods_id']);
    ?>
	 <h1 class="mall_main_title"><?php echo $output['goods']['goods_name']; ?></h1>
	<div class="mall_detail_all clearfix">
		<div id="albums" class="mall_detail_l jqZoomContent fl">
			<div class="jqSlide">
				<div class="jqSlide_list">
					<ul style="top: 0px;">
					<?php
			            $pics = Model('goods_images')->where(array('goods_commonid' => $cmid))->order('goods_image_sort asc')->select();
			            foreach($pics as $key => $val){
			          ?>
			          <!-- <a href="javascript:;">
			            <img src="/data/upload/shop/store/goods/<?php echo $store?>/<?php echo $val['goods_image']?>" alt="">
			          </a> -->
			          <li class="">
							<img src="/data/upload/shop/store/goods/<?php echo $store?>/<?php echo $val['goods_image']?>" rel="/data/upload/shop/store/goods/<?php echo $store?>/<?php echo $val['goods_image']?>" jqimg="/data/upload/shop/store/goods/<?php echo $store?>/<?php echo $val['goods_image']?>" width="60" height="60"><b class="arrow"></b>
						</li>
			          <?php
			            }
			          ?>
					</ul>
				</div>
			</div>
			<div class="pro_img" style="position: relative;">
				<!-- 350*350 add small, 375*500 not -->
				<div class="jqzoom small">
					<img id="product_img" width="350" height="350" src="/data/upload/shop/store/goods/<?php echo $store?>/<?php echo $ginfo['goods_image']?>" rel="/data/upload/shop/store/goods/<?php echo $store?>/<?php echo $ginfo['goods_image']?>" alt="<?php echo $output['goods']['goods_name']; ?>"> <i class="zoom_icon" style="display: inline;"></i>
				</div>
				<script>
					$('#product_img').imagezoom();
					$('.jqSlide_list li').mouseenter(function(){
						$(this).addClass('hover').siblings().removeClass('hover');
						var img = $(this).find('img').attr('src');
						$('#product_img').attr({
							src : img,
							rel : img
						});

					})
				</script>
			</div>
		</div>
		<div class="mall_detail_r fl">
			<div class="mall_price_detail">
				<div id="mall_price_detail" class="mall_price clearfix"> <em class="yen">¥</em>
 <span class="price_num"><?php
            echo $output['goods']['goods_price'];
          ?></span>
 <!-- <span class="label">聚美价</span> -->
 <span class="discount_price">(参考价<del>￥<span class="info_market_price"><?php echo $output['goods']['goods_marketprice']?></span>
					</del>,为您节省
					<label>￥</label><?php echo $output['goods']['goods_marketprice']-$output['goods']['goods_price'];?>)</span>
				</div>
				<dl class="mall_sale_rules" id="mall_sale_rules"></dl>
			</div>
			<?php
 				if($config['open_tax'] == 1){
			?>
			<div class="mall_price_detail" style='padding-top:10px;'>
				<div id="mall_price_detail" class="mall_price clearfix">
					税金：
					<em class="yen">¥</em>
 					<span class="price_num" style='font-size:15px;'>
					<?php
            			echo cal_tax_ex($output['goods']);;
          			?>
          			</span>
				</div>
				<dl class="mall_sale_rules" id="mall_sale_rules"></dl>
			</div>
			<?php }?>
			<div class="mall_price_detail" style='padding-top:10px;'>
				<div id="mall_price_detail" class="mall_price clearfix">
					运费：
					<?php
						if($output['goods']['goods_freight']){
					?>
					<em class="yen">¥</em>
					<?php }?>
 					<span class="price_num" style='font-size:15px;'>
					<?php
            			echo ($output['goods']['goods_freight'] > 0) ? $output['goods']['goods_freight'] : '包邮';
          			?>
          			</span>

				</div>
				<dl class="mall_sale_rules" id="mall_sale_rules"></dl>
			</div>

			<div class="mall_detail_common mall_detail_koubei mar_t15 clearfix" style="display: block;"> <span class="label">评价</span>
				<div class="mall_koubei_detail"><span class="mall_koubei_star fl"><i style="width:<?php echo $output['goods']['evaluation_good_star']*20?>%;"></i></span><span class="mall_koubei_rate fl"><a><?php echo $output['goods']['evaluation_good_star'];?></a>分</span><span class="mall_koubei_num fl"> (共<a href="#userKoubei"><?php echo $output['goods']['evaluation_count'];?></a>篇评价<!-- <a href="http://koubei.beeasy.com.cn/comment_list_mall-251748-1.html" target="_blank">1544</a>篇短评-->) </span>
				</div>
			</div>
			<input type="hidden" id="mall_product_id" value="1039556">
			<style>
				#mall_sku_list a{
					float: left;
					padding: 0 10px;
					margin-right: 10px;
					border : 1px solid #ddd;
					line-height: 25px;
				}
				#mall_sku_list a:hover,._hover{
					border: 1px solid #ed145b !important;

				}
			</style>
			<div id="mall_sku_list" class="mall_detail_common mall_sku_list mar_t15 clearfix">
				<?php
				$links = explode(",", $goods_info['link_goods']);
				foreach($links as $_goods_id){
					$_ginfo = Model('goods')->find($_goods_id);
					?>
					<a href="/shop/index.php?act=goods&op=index&goods_id=<?php echo $_goods_id?>" goods_id="<?php echo $_goods_id?>"><?php echo $_ginfo['spec_name']?></a>
				<?php
				}
				?>
			</div>
			<script>
				$('#mall_sku_list a[goods_id=<?php echo $_GET['goods_id']?>]').addClass("_hover").attr("href","javascript:;");
			</script>
			<div class="mall_detail_common mall_product_num mar_t15 clearfix"> <span class="label">数量</span>
				<div class="num_detail" id="num_detail"> <em title="减少" class="number_reduce fl decrease"></em>
					<input type="text" value="1" id="quantity" class="buy_number fl" maxlength="2"> <em title="增加" class="number_add fl increase"></em>
				</div>
				<span class="label">&nbsp;&nbsp;(库存：<?php echo $output['goods']['goods_storage'];?>件)</span>
			</div>
			<?php if($output['goods']['goods_storage']<0){?>
			<div class="mall_detail_common">
				<span>库存不足</span>
			</div>
			<?php }?>
			<div class="mall_info_button mar_t20 clearfix">
				<a href="javascript:;" nctype="addcart_submit" class="mall_addcart_up"></a>
				<div class="mall_like_all">
					<div class="fav_ibtn_back"></div>
					<a class="mall_like_fav" href="javascript:collect_goods('<?php echo $output['goods']['goods_id']; ?>','count','goods_collect');"> <span id="ilike_text">收藏</span>
 <span class="ilike_num">(<em id="ilike_num"><?php echo $output['goods']['goods_collect']?></em>)</span>
					</a>
				</div>
			</div>
		</div>
	</div>
</div>
<style>
	#faq{
		background: none;
		border: 0px;
		padding-top: 25px;
	}
</style>
<script>
	$(function(){
		// 加入购物车
	    $('a[nctype="addcart_submit"]').click(function(){
	        addcart(<?php echo $output['goods']['goods_id'];?>, checkQuantity(),'addcart_callback');
	        add_to_cart_animate(this,$('.pro_img img').attr('src'));
	    });

	    /* 商品购买数量增减js */
		// 增加
		$('.increase').click(function(){
			num = parseInt($('#quantity').val());
		    <?php if ($output['goods']['is_virtual'] == 1 && $output['goods']['virtual_limit'] > 0) {?>
		    max = <?php echo $output['goods']['virtual_limit'];?>;
		    if(num >= max){
		        alert('最多限购'+max+'件');
		        return false;
		    }
		    <?php } ?>
		    <?php if (!empty($output['goods']['upper_limit'])) {?>
		    max = <?php echo $output['goods']['upper_limit'];?>;
		    if(num >= max){
		        alert('最多限购'+max+'件');
		        return false;
		    }
		    <?php } ?>
			max = parseInt(<?php echo $output['goods']['goods_storage']; ?>);
			if(num < max){
				$('#quantity').val(num+1);
			}
		});
		//减少
		$('.decrease').click(function(){
			num = parseInt($('#quantity').val());
			if(num > 1){
				$('#quantity').val(num-1);
			}
		});

		//评价列表
	    $('#comment_tab').on('click', 'li', function() {
	        $('#comment_tab li').removeClass('current');
	        $(this).addClass('current');
	        load_goodseval($(this).attr('data-type'));
	    });
	    load_goodseval('all');
	    function load_goodseval(type) {
	        var url = '<?php echo urlShop('goods', 'comments', array('goods_id' => $output['goods']['goods_id']));?>';
	        url += '&type=' + type;
	        $("#goodseval").load(url, function(){
	            $(this).find('[nctype="mcard"]').membershipCard({type:'shop'});
	        });
	    }
	    //记录浏览历史
		$.get("index.php?act=goods&op=addbrowse",{gid:<?php echo $output['goods']['goods_id'];?>});
	})

	// 验证购买数量
	function checkQuantity(){
	    var quantity = parseInt($("#quantity").val());
	    if (quantity < 1) {
	        alert("<?php echo $lang['goods_index_pleaseaddnum'];?>");
	        $("#quantity").val('1');
	        return false;
	    }
	    max = parseInt($('[nctype="goods_stock"]').text());
	    <?php if ($output['goods']['is_virtual'] == 1 && $output['goods']['virtual_limit'] > 0) {?>
	    max = <?php echo $output['goods']['virtual_limit'];?>;
	    if(quantity > max){
	        alert('最多限购'+max+'件');
	        return false;
	    }
	    <?php } ?>
	    <?php if (!empty($output['goods']['upper_limit'])) {?>
	    max = <?php echo $output['goods']['upper_limit'];?>;
	    if(quantity > max){
	        alert('最多限购'+max+'件');
	        return false;
	    }
	    <?php } ?>
	    if(quantity > max){
	        alert("<?php echo $lang['goods_index_add_too_much'];?>");
	        return false;
	    }
	    return quantity;
	}
	/* 加入购物车后的效果函数 */
	function addcart_callback(data){
		  // layer.msg('加入购物车成功',{
		  //     btn : ['现在去结算','继续购物'],
		  //     btn1 : function(){
		  //       location.href = '/shop/?act=cart';
		  //     },
		  //     btn2 : function(){
		  //       layer.closeAll();
		  //     }
		  // });
		// $('#bold_num').html(data.num);
	 //    $('#bold_mly').html(price_format(data.amount));
	 //    $('.ncs-cart-popup').fadeIn('fast');
	}

</script>
<!-- 底部 -->
<div class="layout_1090 mar_t20 clearfix">
	<!--left-->
	<div id="mall_slidebar_l" class="mall_slidebar_l fl">
		<div class="mall_search mar_b10">
			<h2 class="black_title">本店搜索</h2>
			<div class="slidebar_content white_bg">
				<form class="mall_input_form" action="index.php" method="get" target="_blank">
				<input type="hidden" name="act" value="show_store" />
		        <input type="hidden" name="op" value="goods_all" />
		        <input type="hidden" name="store_id" value="<?php echo $output['store_info']['store_id'];?>" />
					<div class="mall_input_content"><span>关键词</span>
						<input type="text" name="search" value="" class="mall_search_input">
					</div>
					<input class="mall_submit_input" type="submit" value="搜索">
				</form>
			</div>
			<iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe>
		</div>
		<div class="mall_shop_sortmenu mar_b10">
			<h2 class="black_title">按分类</h2>
			<div class="slidebar_content white_bg">
				<ul class="ncs-submenu">
			      <li><span class="ico-none"><em>-</em></span><a href="<?php echo urlShop('show_store', 'goods_all', array('store_id' => $output['store_info']['store_id']));?>"><?php echo $lang['nc_whole_goods'];?></a></li>
			      <?php if(!empty($output['goods_class_list']) && is_array($output['goods_class_list'])){?>
			      <?php foreach($output['goods_class_list'] as $value){?>
			      <?php if(!empty($value['children']) && is_array($value['children'])){?>
			      <li><span class="ico-none" onclick="class_list(this);" span_id="<?php echo $value['stc_id'];?>" style="cursor: pointer;"><em>-</em></span><a href="<?php echo urlShop('show_store', 'goods_all', array('store_id' => $output['store_info']['store_id'], 'stc_id' => $value['stc_id']));?>"><?php echo $value['stc_name'];?></a>
			        <ul id="stc_<?php echo $value['stc_id'];?>">
			          <?php foreach($value['children'] as $value1){?>
			          <li><span class="ico-sub">&nbsp;</span><a href="<?php echo urlShop('show_store', 'goods_all', array('store_id' => $output['store_info']['store_id'], 'stc_id' => $value1['stc_id']));?>"><?php echo $value1['stc_name'];?></a></li>
			          <?php }?>
			        </ul>
			      </li>
			      <?php }else {?>
			      <li> <span class="ico-none"><em>-</em></span><a href="<?php echo urlShop('show_store', 'goods_all', array('store_id' => $output['store_info']['store_id'], 'stc_id' => $value['stc_id']));?>"><?php echo $value['stc_name'];?></a></li>
			      <?php }?>
			      <?php }?>
			      <?php }?>
			    </ul>
				<!-- <div class="mall_slidebar_parent">
					<h3 class="mall_slidebar_title"><i></i><a href="http://mentholatum.beeasy.com.cn/search.html?cat=3">彩妆</a></h3>
					<ul class="mall_slidebar_list">
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=33">防晒</a>
						</li>
					</ul>
				</div> -->
				<!-- <div class="mall_slidebar_parent">
					<h3 class="mall_slidebar_title"><i></i><a href="http://mentholatum.beeasy.com.cn/search.html?cat=1">面部护肤</a></h3>
					<ul class="mall_slidebar_list">
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=9">乳液</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=81">啫哩/凝露/凝胶</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=19">洁面</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=23">护肤套装</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=10">化妆水/爽肤水</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=83">唇部护理</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=338">T区/特殊护理</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=17">精华</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=14">面膜</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=16">面霜</a>
						</li>
					</ul>
				</div>
				<div class="mall_slidebar_parent">
					<h3 class="mall_slidebar_title"><i></i><a href="http://mentholatum.beeasy.com.cn/search.html?cat=417">男士护理</a></h3>
					<ul class="mall_slidebar_list">
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=418">男士护肤</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=419">男士身体护理</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=409">男士套装</a>
						</li>
					</ul>
				</div>
				<div class="mall_slidebar_parent">
					<h3 class="mall_slidebar_title"><i></i><a href="http://mentholatum.beeasy.com.cn/search.html?cat=21">身体护理</a></h3>
					<ul class="mall_slidebar_list">
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=280">手足护理</a>
						</li>
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=57">润肤</a>
						</li>
					</ul>
				</div>
				<div class="mall_slidebar_parent">
					<h3 class="mall_slidebar_title"><i></i><a href="http://mentholatum.beeasy.com.cn/search.html?cat=77">美容工具</a></h3>
					<ul class="mall_slidebar_list">
						<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?cat=411">护肤工具</a>
						</li>
					</ul>
				</div> -->
			</div>
		</div>
		<!-- <div class="mall_shop_use mar_b10">
			<h2 class="black_title">按功效</h2>
			<div class="slidebar_content white_bg">
				<ul class="mall_slidebar_list">
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=1">紧致</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=2">均匀肤色</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=3">持久</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=4">祛痘</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=5">清洁</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=7">保湿</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=8">修护肌肤</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=10">美白</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=11">补水</a>
					</li>
					<li><a target="_blank" href="http://mentholatum.beeasy.com.cn/search.html?func=13">滋润</a>
					</li>
				</ul>
			</div>
		</div> -->
		<div class="mall_shop_rank mar_b10">
			<h2 class="black_title">热销排行榜</h2>
			<div class="slidebar_content white_bg">
				<?php if(is_array($output['hot_sales']) && !empty($output['hot_sales'])){?>
		      <ul class="mall_rank_list">
		        <?php foreach($output['hot_sales'] as $val){?>
		        <li>
		          <a class="mall_rank_img fl" href="<?php echo urlShop('goods', 'index',array('goods_id'=>$val['goods_id']));?>"><img src="<?php echo thumb($val, 60);?>"  onload="javascript:DrawImage(this,40,40);"></a>
		            <div class="mall_rank_word fl">
						<p class="mall_rank_a">
							<a href="<?php echo urlShop('goods', 'index', array('goods_id'=>$val['goods_id']));?>"><?php echo $val['goods_name'];?></a>
						</p>
						<p class="mall_rank_price">
							¥<?php echo $val['goods_promotion_price']?>
						</p>

		        </li>
		        <?php }?>
		      </ul>
		      <?php }?>
			</div>
		</div>
	</div>
	<!--left end-->
	<!--right-->
	<div class="mall_slidebar_r fr white_bg">
		<div class="slidebar_r_detail">
			<div id="slidebarTabsFixed" class="slidebarTabsFixed">
				<div class="slidebar_r_nav black_title" style="width: 100%;">
					<ul class="slidebar_r_ul">
						<li class="tab_current"> <a class="tab_menu_a" href="#shoppingParameter">商品参数</a>
						</li>
						<li> <a class="tab_menu_a" href="#shoppingDetail">商品详情</a>
						</li>
						<li> <a class="tab_menu_a" href="#goodsReality">销售记录</a>
						</li>
						<li> <a class="tab_menu_a" href="#userKoubei">用户评价</a>
						</li>
						<!-- <li id="recommendYouTab"> <a class="tab_menu_a" href="#recommendYou">为您推荐</a>
						</li> -->
						<li class="mall_cart_icons"> <span class="jm_price fl"><em class="jm_yen">¥</em><?php echo $output['goods']['goods_price'];?></span>
							<a class="mall_bottom_cart" href="javascript:;"></a>
						</li>
					</ul>
				</div>
			</div>
			<script>
				$(function(){
					// 加入购物车
				    $('.mall_bottom_cart').click(function(){
				    	$('a[nctype="addcart_submit"]').trigger('click');
				        // addcart(<?php echo $output['goods']['goods_id'];?>, checkQuantity(),'addcart_callback');
				    });
				})
			</script>
			<!--right content-->
			<div class="slidebar_pro_cn">

				<!-- 品牌授权及防伪 end -->
				<!--商品参数-->
				<div id="shoppingParameter" class="shopping_parameter w_700" loaded="loaded">
					 <h2 class="detail_title"></h2>
					<div class="mall_detail_des">
						<ul class="nc-goods-sort">
				            <li>商家货号：<?php echo $output['goods']['goods_serial'];?></li>
				            <?php if(isset($output['goods']['brand_name'])){echo '<li>'.$lang['goods_index_brand'].$lang['nc_colon'].$output['goods']['brand_name'].'</li>';}?>
				            <?php if(is_array($output['goods']['goods_attr']) && !empty($output['goods']['goods_attr'])){?>
				            <?php foreach ($output['goods']['goods_attr'] as $val){ $val= array_values($val);echo '<li>'.$val[0].$lang['nc_colon'].$val[1].'</li>'; }?>
				            <?php }?>
				        </ul>
					</div>
				</div>
				<!--商品参数 end-->
				<!--商品详情-->
				<div id="shoppingDetail" class="shopping_detail w_700" loaded="loaded">
					 <h2 class="detail_title"></h2>
					<div class="mall_detail_des">
						<?php if (isset($output['plate_top'])) {?>
            <div class="top-template"><?php echo $output['plate_top']['plate_content']?></div>
            <?php }?>
            <div class="default"><?php echo $output['goods']['goods_body']; ?></div>
            <?php if (isset($output['plate_bottom'])) {?>
            <div class="bottom-template"><?php echo $output['plate_bottom']['plate_content']?></div>
            <?php }?>
					</div>
				</div>
				<!--商品详情 end-->
				<!--使用方法-->

				<!--使用方法 end-->
				<!--商品实拍-->
				<div id="goodsReality" class="goods_reality w_700" loaded="loaded">
					 <h2 class="detail_title"></h2>
					<div class="mall_detail_des">
						<div class="top">
            <div class="price"><?php echo $lang['goods_index_goods_price'];?><strong><?php echo $output['goods']['goods_price'];?></strong><?php echo $lang['goods_index_yuan'];?><span><?php echo $lang['goods_index_price_note'];?></span></div>
          </div>
          <!-- 成交记录内容部分 -->
          <div id="salelog_demo" class="ncs-loading"> </div>
					</div>
				</div>
				<!--商品实拍 end-->
				<!--用户口碑-->
				<style>
					#product_report{
						padding: 9px;
						margin-bottom: 20px;
						border-style: solid;
						border-color: #D7D7D7;
						-moz-border-top-colors: none;
						-moz-border-right-colors: none;
						-moz-border-bottom-colors: none;
						-moz-border-left-colors: none;
						border-image: none;
						border-width: 0px 1px 1px;
					}
					#product_report .rate{
						line-height: 20px;
						color: #F54B83;
						vertical-align: middle;
						display: inline-block;
						margin: 10px 40px 10px 20px;
					}
					#product_report .rate strong {
					    font: lighter 40px/40px arial;
					    vertical-align: bottom;
					}
					#product_report .rate span {
					    color: #999;
					    display: block;
					    clear: both;
					}
					#product_report .percent {
					    vertical-align: middle;
					    display: inline-block;
					}
					#product_report .percent dl {
					    font-size: 0px;
					}
					#product_report .percent dt {
					    font-size: 12px;
					    line-height: 20px;
					    vertical-align: top;
					    letter-spacing: normal;
					    word-spacing: normal;
					    display: inline-block;
					    width: 80px;
					    height: 20px;
					}
					#product_report .percent dd {
					    background-color: #F5F5F5;
					    vertical-align: top;
					    letter-spacing: normal;
					    word-spacing: normal;
					    display: inline-block;
					    width: 100px;
					    height: 14px;
					    margin: 3px 0px;
					}
					#product_report .percent dd i {
					    background-color: #F54B83;
					    display: block;
					    height: 14px;
					}
					#product_report .btns {
					    vertical-align: middle;
					    display: inline-block;
					    height: 60px;
					    padding-left: 30px;
					    margin-left: 150px;
					    border-left: 1px dotted #E6E6E6;
					}
					a.ncs-btn-red {
						color:#fff;
					    background-color: #F54B83;
					    border-color: #F73575 #F73585 #F73578;
					}
					a.ncs-btn-red:hover{
						background-color: #F54B83;
						border-color: #F73575 #F73585 #F73578;
					}
				</style>
				<div id="userKoubei" class="user_koubei w_700" loaded="loaded">
					 <h2 class="detail_title"></h2>
					<div id="script_koubei">
						<div class="rp_bigimg_wrap">
							<div class="rp_bigimg_wrap_bg"></div>
							<div class="rp_bigimg_wrap_con">
								<div class="img_wrap"></div>
							</div>
						</div>
						<div id="product_report" class="deal_con product_report">
							<div class="top">
					            <div class="rate">
					              <p><strong><?php echo $output['goods_evaluate_info']['good_percent'];?></strong><sub>%</sub>好评</p>
					              <span>共有<?php echo $output['goods_evaluate_info']['all'];?>人参与评分</span></div>
					            <div class="percent">
					              <dl>
					                <dt>好评<em>(<?php echo $output['goods_evaluate_info']['good_percent'];?>%)</em></dt>
					                <dd><i style="width: <?php echo $output['goods_evaluate_info']['good_percent'];?>%"></i></dd>
					              </dl>
					              <dl>
					                <dt>中评<em>(<?php echo $output['goods_evaluate_info']['normal_percent'];?>%)</em></dt>
					                <dd><i style="width: <?php echo $output['goods_evaluate_info']['normal_percent'];?>%"></i></dd>
					              </dl>
					              <dl>
					                <dt>差评<em>(<?php echo $output['goods_evaluate_info']['bad_percent'];?>%)</em></dt>
					                <dd><i style="width: <?php echo $output['goods_evaluate_info']['bad_percent'];?>%"></i></dd>
					              </dl>
					            </div>
					            <div class="btns"><span>您可对已购商品进行评价</span>
					              <p><a href="<?php if ($output['goods']['is_virtual']) { echo urlShop('member_vr_order', 'index');} else { echo urlShop('member_order', 'index');}?>" class="ncs-btn ncs-btn-red" target="_blank"><i class="icon-comment-alt"></i>评价商品</a></p>
					            </div>
					          </div>
					          <div class="ncs-goods-title-nav">
					            <ul id="comment_tab">
					              <li data-type="all" class="current"><a href="javascript:void(0);"><?php echo $lang['goods_index_evaluation'];?>(<?php echo $output['goods_evaluate_info']['all'];?>)</a></li>
					              <li data-type="1"><a href="javascript:void(0);">好评(<?php echo $output['goods_evaluate_info']['good'];?>)</a></li>
					              <li data-type="2"><a href="javascript:void(0);">中评(<?php echo $output['goods_evaluate_info']['normal'];?>)</a></li>
					              <li data-type="3"><a href="javascript:void(0);">差评(<?php echo $output['goods_evaluate_info']['bad'];?>)</a></li>
					            </ul>
					          </div>
					          <!-- 商品评价内容部分 -->
					          <div id="goodseval" class="ncs-commend-main"></div>
						</div>
					</div>
				</div>
				<!--用户口碑 end-->
				<!--为您推荐-->
				<!-- <div id="recommendYou" class="recommend_you w_700" loaded="loaded">
					 <h2 class="detail_title"></h2>
					<div class="mall_detail_des">
						 <h2 class="mar_t20"><div>买了此商品的用户还买了</div></h2>
						<ul class="mar_t20 clearfix">
							<li>
								<a href="http://item.beeasy.com.cn/1686.html?from=r_m_da_251748_1-1" title="Mentholatum曼秀雷敦天然植物润唇膏佛手柑 4g" target="_blank" class="pic">
									<img src="http://p1.jmstatic.com/product/000/001/1686_std/1686_100_100.jpg" alt="" width="100" height="100">
								</a>
								<p class="tit"><a href="http://item.beeasy.com.cn/1686.html?from=r_m_da_251748_1-1" title="Mentholatum曼秀雷敦天然植物润唇膏佛手柑 4g" target="_blank">Mentholatum曼秀雷敦天然植物润唇膏佛手柑 4g</a>
								</p>
								<p class="price">¥32.60</p>
								<p class="count">9819篇评价</p>
							</li>
							<li>
								<a href="http://item.beeasy.com.cn/20909.html?from=r_m_da_251748_1-2" title="曼秀雷敦(Mentholatum)天然植物润唇膏（无香料）4g" target="_blank" class="pic">
									<img src="http://p4.jmstatic.com/product/000/020/20909_std/20909_100_100.jpg" alt="" width="100" height="100">
								</a>
								<p class="tit"><a href="http://item.beeasy.com.cn/20909.html?from=r_m_da_251748_1-2" title="曼秀雷敦(Mentholatum)天然植物润唇膏（无香料）4g" target="_blank">曼秀雷敦(Mentholatum)天然植物润唇膏（无香料）4g</a>
								</p>
								<p class="price">¥32.60</p>
								<p class="count">6195篇评价</p>
							</li>
							<li>
								<a href="http://item.beeasy.com.cn/2304.html?from=r_m_da_251748_1-3" title="Mentholatum曼秀雷敦特柔润唇膏 3g" target="_blank" class="pic">
									<img src="http://p4.jmstatic.com/product/000/002/2304_std/2304_100_100.jpg" alt="" width="100" height="100">
								</a>
								<p class="tit"><a href="http://item.beeasy.com.cn/2304.html?from=r_m_da_251748_1-3" title="Mentholatum曼秀雷敦特柔润唇膏 3g" target="_blank">Mentholatum曼秀雷敦特柔润唇膏 3g</a>
								</p>
								<p class="price">¥24.60</p>
								<p class="count">3006篇评价</p>
							</li>
							<li>
								<a href="http://item.beeasy.com.cn/16944.html?from=r_m_da_251748_1-4" title="曼秀雷敦(Mentholatum)水份润手霜50g " target="_blank" class="pic">
									<img src="http://p4.jmstatic.com/product/000/016/16944_std/16944_100_100.jpg" alt="" width="100" height="100">
								</a>
								<p class="tit"><a href="http://item.beeasy.com.cn/16944.html?from=r_m_da_251748_1-4" title="曼秀雷敦(Mentholatum)水份润手霜50g " target="_blank">曼秀雷敦(Mentholatum)水份润手霜50g </a>
								</p>
								<p class="price">¥15.60</p>
								<p class="count">7153篇评价</p>
							</li>
						</ul>
					</div>
				</div> -->
				<!--为您推荐 end-->
			</div>
			<!--right content end-->
		</div>
	</div>
	<!--right end-->
</div>
<?php }?>